<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
	<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
	<title>后盾问答</title>
	<meta name="keywords" content="后盾问答"/>
	<meta name="description" content="后盾问答"/>
	{{include file="../Common/header.html"}}
	<link rel="stylesheet" href="Public/Home/Css/member.css" />
	<script type="text/javascript" src='Public/Home/Js/member.js'></script>
<!-- top结束 -->
<!--------------------中部-------------------->
	<div id='center'>
<!-- 左侧 -->
{{include file="../Common/memberLeft.html"}}
<!-- 左侧结束 -->
		<div id='right'>
			<p class='title'>{{if $smarty.session.uid==$smarty.get.uid}}我{{else}}他{{/if}}的回答</p>
			<ul class='ask-filter'>
				<li {{if !$smarty.get.all}}class='cur'{{/if}}><a href="./index.php?c=Member&a=myAnswer&uid={{$smarty.get.uid}}&all=0">全部回答</a></li>
				<li {{if $smarty.get.all}}class='cur'{{/if}}><a href="./index.php?c=Member&a=myAnswer&uid={{$smarty.get.uid}}&all=1">被采纳的回答</a></li>
			</ul>
			{{if !$smarty.get.all}}
			<div class='list list-filter'>
				<table>
					{{if !$allAnswer}}
						<tr height='140'>
							<td>{{if $smarty.session.uid==$smarty.get.uid}}我{{else}}他{{/if}}还没有回答过问题</td>
						</tr>
					{{else}}
						<tr>
							<th class='t1'>标题</th>
							<th>回答</th>
							<th class='t3'>更新时间</th>
						</tr>
					{{section loop=$allAnswer name=a}}
						<tr>
							<td class='t1'>
								<a href="{{'Ask/index'|U}}&cid={{$allAnswer[a].cid}}&asid={{$allAnswer[a].asid}}">{{$allAnswer[a].content}}</a><span>[{{$allAnswer[a].title}}]</span>
							</td>
							<td>{{$allAnswer[a].answer}}</td>
							<td class='t3'>{{$allAnswer[a].time|date_format:"%Y-%m-%d"}}</td>
						</tr>
					{{/section}}
					{{/if}}
				</table>
			</div>
			{{/if}}
			{{if $smarty.get.all}}
			<div class='list list-filter'>
				<table>
					{{if !$acceptAnswer}}
						<tr height='140'>
							<td>{{if $smarty.session.uid==$smarty.get.uid}}我{{else}}他{{/if}}还没有被采纳的回答</td>
						</tr>
					{{else}}
						<tr>
							<th class='t1'>标题</th>
							<th>回答</th>
							<th class='t3'>更新时间</th>
						</tr>
						{{section loop=$acceptAnswer name=a}}
						<tr>
							<td class='t1'>
								<a href="">{{$acceptAnswer[a].content}}</a><span>[{{$acceptAnswer[a].title}}]</span>
							</td>
							<td>{{$acceptAnswer[a].answer}}</td>
							<td class='t3'>{{$acceptAnswer[a].time|date_format:"%Y-%m-%d"}}</td>
						</tr>
						{{/section}}
					{{/if}}
				</table>
			</div>
			{{/if}}
		</div>
	</div>
<!--------------------中部结束-------------------->
<!-- 底部 -->
{{include file="../Common/footer.html"}}
<!-- 底部结束 -->